package com.origin.src.autowired;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan
public class SetAutowired {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SetAutowired.class);
        BeanSetF beanSetF = context.getBean(BeanSetF.class);
        System.out.println(beanSetF.getBeanSetC());

    }

    @Bean
    public BeanSetF beanSetF() {
        return new BeanSetF();
    }

}
